package com.study.ctripapollo.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.study.ctripapollo.entity.User;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author flwu
 * @since 2020-02-17
 */
public interface IUserService extends IService<User> {

    public User getUserInfoById(Integer id) throws Exception;

    public User getUserInfo(QueryWrapper queryWrapper) throws Exception;

    public List<User> getUserList(QueryWrapper queryWrapper) throws Exception;

    public IPage<User> getUserListByPage(Integer page, Integer pageSize, Map<String, String> params) throws Exception;

    public Boolean updateUser(User user, QueryWrapper<User> queryWrapper) throws Exception;

    public Boolean deleteUser(Integer id) throws Exception;

    public Integer addUser(User user) throws Exception;
}
